﻿{% extends "forum/base.html" %}
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
  - http://heavyz.blogspot.com/
  - http://buggarden.blogspot.com/

  Created on 2008-05-26.
  $Id: admin_board.html 251 2008-10-27 15:06:45Z heavyzheng $
-->
{% endcomment %}


{% block html_head %}

<title>Admin Dashboard :: Bug Garden Forum</title>

{% endblock %}{# html_head #}


{% block title %} {{ board.name|escape }} {% endblock %}


{% block subtitle %} {{ board.description|escape }} {% endblock %}


{% block navigator %}
  <img src="/static/forum/images/home_icon.png" alt="Bug Garden Forum"/>
  <a href="/forum/">Forum Home</a>
  &#187;
  <img src="/static/forum/images/board_icon.png" alt="Board"/>
  <a href="/forum/board/{{ board.key.id }}/">{{ board.name|escape }}</a>
  &#187;
  <img src="/static/forum/images/admin_icon.png" alt="Admin"/>
  Admin
  <br/>
  Admins:
  {% for admin in board.admins %}
    <a href="#TODO">{{ admin.nickname }}</a>,
  {% endfor %}
{% endblock %}


{% block content %}

  <div class="section">
    <div class="content">
    
      {% if board.is_current_user_admin %}
        <div class="frm-request-form">
          <form action="/forum/admin_board/{{ board.key.id }}/" method="POST">
            <table class="bordered" width="100%">
              <tr>
                <td class="nowrap" align="right" width="1%"><b>Board Name : </b></td>
                <td class="nowrap">
                  <b><a href="/forum/board/{{ board.key.id }}/">{{ board.name|escape }}</a></b>
                </td>
              </tr>
              <tr>
                <td class="nowrap" align="right" width="1%"><b>Description : </b></td>
                <td class="nowrap">
                  <input name="description" type="text" size="100" value="{{ board.description|escape }}"/>
                </td>
              </tr>
              <tr>
                <td class="nowrap" align="right" width="1%"><b>Status : </b></td>
                <td class="nowrap">{{ board.status_as_str }}</td>
              </tr>
              <tr>
                <td class="nowrap" align="right" width="1%"><b>Threads/Posts : </b></td>
                <td class="nowrap">{{ board.threads }}/{{ board.posts }}</td>
              </tr>
              <tr>
                <td class="nowrap" align="right" width="1%"><b>Admin(s) : </b></td>
                <td class="nowrap">
                  <input name="admins" type="text" size="100" value="{{ board.admins_as_str }}"/><br/>
                  <span class="small gray">Comma-separated admin emails.</span>
                </td>
              </tr>
              <tr>
                <td class="nowrap" width="1%"></td>
                <td class="nowrap"><input type="submit" value="Update"/></td>
              </tr>
            </table>
          </form>
        </div>
      {% else %}
        Sorry, you do not have the right to manage this board.
      {% endif %}
      
    </div><!--/.content-->
  </div><!--/.section-->

{% endblock %}{# content #}



